<?php
use yii\helpers\Html;
use yii\helpers\Url;
use backend\utils\ImageSize;

?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <title>账户项目项目管理系统</title>
    <meta name="keywords" content="账户项目项目管理系统">
    <meta name="description" content="账户项目项目管理系统">
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html"/>
    <![endif]-->
    <link rel="shortcut icon" href="/favicon.ico">

    <link href="/css/bootstrap.min.css" rel="stylesheet">
    <link href="/css/font-awesome.min.css" rel="stylesheet">
    <link href="/css/animate.min.css" rel="stylesheet">
    <!-- 全局js -->
    <script src="/js/jquery.min.js"></script>
    <script src="/js/bootstrap.min.js"></script>
    <!--导航-->
    <script src="/js/plugins/metisMenu/jquery.metisMenu.js"></script>
    <!--滚动条-->
    <script src="/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <!--经典模块化前端框架-->
    <script src="/js/plugins/layer/layer.min.js"></script>
    <script src="/js/plugins/sweetalert/sweetalert.min.js"></script>
    <link href="/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <!-- 自定义js-->
    <script src="/js/hplus.min.js"></script>
    <script src="/js/contabs.min.js"></script>
    <script src="/js/common.js?r=1"></script>
    <link rel="stylesheet" href="/css/plugins/chosen/chosen.css">
</head>
<body class="fixed-sidebar full-height-layout gray-bg mini-navbar">
<div id="wrapper">
    <div id="page-wrapper" class="gray-bg dashbard-1" style="margin:0">
        <div class="J_mainContent" id="content-main">
            <div class="wrapper wrapper-content">
                <div class="col-sm-12">
                    <div class="ibox">
<!--                        <div class="ibox-title"><h5>学生详情</h5></div>-->
                        <div class="ibox-content">
                            <table class="table table-hover">
                                <tr><th style="width:150px">昵称</th><td><?=Html::encode($user->nickname)?></td></tr>
                                <tr><th>身份</th><td><?=$user->class==1?'老师':'学生'?></td></tr>
                                <tr><th>头像</th><td><img src="<?=ImageSize::image(['url'=>$user->icon,'width'=>100,'high'=>100])?>"/></td></tr>
                                <tr><th>城市</th><td><?=$area?></td></tr>
                                <tr><th>所属代理商</th><td><?=$info['agent']?></td></tr>
                                <tr><th>性别</th><td><?=$user->gender==1?'男':'女'?></td></tr>
                                <tr><th>生日</th><td><?=$user->birthday?></td></tr>
                                <tr><th>个性签名</th><td><?=Html::encode($user->autograph)?></td></tr>
                                <tr><th>手机号</th><td><?php echo \backend\models\UserModel::resetTelephone($user->telephone); ?></td></tr>
                                <tr><th>鼠币</th><td><?=$info['coin']?></td></tr>
                                <tr><th>购买视频数</th><td>
                                    总数：<?=$info['user_video_count']?><br/>
                                    有效数：<?=$info['user_video_valid']?><br/>
                                    失效数：<?=$info['user_video_expire']?>
                                </td></tr>
                                <tr><th>订单数</th><td><?=$info['order_count']?>笔</td></tr>
                                <tr><th>订单总额</th><td><?=$info['order_amount']?>元</td></tr>
                                <tr><th>充值数</th><td><?=$info['recharge_count']?>笔</td></tr>
                                <tr><th>充值总额</th><td><?=$info['recharge_amount']?>元</td></tr>
                                <tr><th>收藏</th><td>
                                    视频数:<?=$info['favorite_video']?><br/>
                                    课程数:<?=$info['favorite_course']?><br/>
                                    老师数:<?=$info['favorite_teacher']?>
                                </td></tr>
                                <tr><th>邀请码</th><td><?=$user->invitation_code?></td></tr>
                                <tr><th>推广码</th><td><?=$user->promo_code?></td></tr>
                                <tr><th>推广数</th><td>学生数：<?=$info['invitation_student']?><br/>老师数：<?=$info['invitation_teacher']?></td></tr>
                                <tr><th>推广总收益</th><td>
                                    <?=($info['student_amount_share_from']+$info['student_amount_share_from_parent']+$info['teacher_amount_share_from']+$info['teacher_amount_share_from_parent'])*100?>鼠币
                                </td></tr>
                                <tr><th>app版本信息</th><td><?=$info['user_app_device']?></td></tr>
                                <tr><th>个推CID</th><td><?=$user->gt_cid?></td></tr>
                                <tr><th>注册来源</th><td><?=$user::$registered_from_arr[(int)$user->registered_from]?></td></tr>
                                <tr><th>状态</th><td><?=$user->status==0?'正常':'禁用'?></td></tr>
                                <tr><th>是否删除</th><td><?=$user->is_delete==0?'未删除':'已删除'?></td></tr>
                                <tr><th>更新时间</th><td><?=date('Y-m-d H:i:s',$user->update_time)?></td></tr>
                                <tr><th>注册时间</th><td><?=date('Y-m-d H:i:s',$user->create_time)?></td></tr>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html>